package com.example.api.service;

import com.example.api.dto.AddressDTO;
import com.example.api.query.AddressQuery;
import com.example.api.utils.PageResult;
import com.example.api.vo.AddressVO;

public interface AddressService {
    void add(AddressDTO addressDTO);

    PageResult<AddressVO> find(AddressQuery addressQuery);

    AddressVO findById(long id);

    void update(long id, AddressDTO addressDTO);

    void deleteById(long id);

    AddressVO findDefaultAddress(long customerId);
}
